<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" charset="utf-8">
	$(function() {
		$('#admin_xsck_datagrid').datagrid({
			url : ' ${pageContext.request.contextPath}/receiptAction!datagrid.action ',
			title : '',
			iconCls : 'icon-save',
			pagination : true,
			pageSize : 5,
			pageList : [ 5, 10, 15, 20 ],
			fit : true,
			fitColumns : true,
			nowarp : false,
			border : false,
			columns : [ [ {
				field : 'id',
				title : '编号',
				width : 50,
				hidden :true
			}, {
				field : 'tid',
				title : '销售号',
				width : 150
			},{
				field : 'cashier',
				title : '收银员',
				width : 100
			}, {
				field : 'cardid',
				title : '会员卡号',
				width : 100
			}, {
				field : 'vip',
				title : '会员名称',
				width : 100
			}, {
				field : 'date',
				title : '开单时间',
				width : 150,
				sortable :true
			}, {
				field : 'totalprice',
				title : '销售金额',
				width : 100,
				sortable :true
			},{
				field : 'state',
				title : '状态',
				width : 100,
				sortable : true
			}] ]	
		});
	});
		$('#admin_xsck_searchbox').searchbox({
		    searcher:function(value,name){
		    	searchFun();
		    },
		    menu:'#mm',
		    prompt:'可进行模糊查询'
		});
	function searchFun() {
		//console.info(serializeObject($('#admin_yhgl_searchForm')));
		$('#admin_xsck_datagrid').datagrid('load',serializeObject($('#admin_xsck_searchForm')));
	}
	function clearFun() {
		$('#admin_xsck_datagrid').datagrid('load', {});
	}
</script>
<div id="admin_xsck_layout" class="easyui-layout" data-options="border:false,fit:true">
<div region="north" data-options="border:false,title:'过滤信息'" style="height:75px;overflow:hidden;">
<form id="admin_xsck_searchForm" >
<div style="float:right;margin:5px;"><input id="admin_xsck_searchbox" style="width:300px;"></input></div><br/>
<div style="float:left;margin:5px;"><label>开单时间&nbsp;:&nbsp;从&nbsp;</label><input name="createdatetimeStart"  class="easyui-datebox" /><label>&nbsp;至&nbsp;</label><input name="createdatetimeEnd" class="easyui-datebox" />
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="searchFun();" >查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="clearFun();">回显所有</a></div>
</form>
<div id="mm" style="width:120px">
    <div data-options="name:'cashier',iconCls:'icon-ok'">收银员</div>
    <div data-options="name:'cardid',iconCls:'icon-ok'">会员卡号</div>
    <div data-options="name:'vip',iconCls:'icon-ok'">会员名称</div>
</div>
</div>
<div region="center" data-options="border:false">
<table id="admin_xsck_datagrid"></table>
</div>
</div>


